<?php
header("Access-Control-Allow-Origin: *");
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to
| and give it the Closure to call when that URI is requested.
|
*/

$app->get('/', 'IndexController@index');
$app->get('/cardata', 'IndexController@cardata');
$app->get('/car', 'IndexController@car');
$app->post('/car', 'IndexController@car');
$app->get('/create', 'IndexController@create');
$app->get('/delete', 'IndexController@delete');
$app->get('/update', 'IndexController@update');
$app->get('/abnormal/whole', 'IndexController@whole');
$app->get('/abnormal/{id}', 'IndexController@abnormal');
